package com.example.perplonews.a_d_fragment.b_perplo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.webkit.WebView
import android.widget.*
import androidx.recyclerview.widget.RecyclerView
import com.example.perplonews.R
import com.google.android.material.appbar.AppBarLayout

class Per_News_Activity : AppCompatActivity() {
    private val webValuesTop: RelativeLayout by lazy { findViewById<RelativeLayout>(R.id.web_values_top) }
    private val headBackImg: ImageView by lazy { findViewById<ImageView>(R.id.head_back_img) }
    private val webValuesBottomRelative: RelativeLayout by lazy { findViewById<RelativeLayout>(R.id.web_values_bottom_relative) }
    private val liveShareImg: ImageView by lazy { findViewById<ImageView>(R.id.live_share_img) }
    private val liveCollectionImg: ImageView by lazy { findViewById<ImageView>(R.id.live_collection_img) }
    private val liveMsgRelative: RelativeLayout by lazy { findViewById<RelativeLayout>(R.id.live_msg_relative) }
    private val liveMsgNumTv: TextView by lazy { findViewById<TextView>(R.id.live_msg_num_tv) }
    private val liveEdtBtn: RelativeLayout by lazy { findViewById<RelativeLayout>(R.id.live_edt_btn) }
    private val liveFaceImg: ImageView by lazy { findViewById<ImageView>(R.id.live_face_img) }
    private val webValuesLine: View by lazy { findViewById<View>(R.id.web_values_line) }
    private val webValuesAppbar: AppBarLayout by lazy { findViewById<AppBarLayout>(R.id.web_values_appbar) }
    private val webValuesX5: WebView by lazy { findViewById<WebView>(R.id.web_values_x5) }
    private val webValuesCommentRv: RecyclerView by lazy { findViewById<RecyclerView>(R.id.web_values_comment_rv) }
    private val liveBottomView: RelativeLayout by lazy { findViewById<RelativeLayout>(R.id.live_bottom_view) }
    private val liveMsgEdt: EditText by lazy { findViewById<EditText>(R.id.live_msg_edt) }
    private val liveSendTv: TextView by lazy { findViewById<TextView>(R.id.live_send_tv) }
    private val liveVoiceImg: ImageView by lazy { findViewById<ImageView>(R.id.live_voice_img) }
    private val liveEmojiImg: ImageView by lazy { findViewById<ImageView>(R.id.live_emoji_img) }
    private val liveEmojiLinear: LinearLayout by lazy { findViewById<LinearLayout>(R.id.live_emoji_linear) }


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_per_news)
        var url = intent.getStringExtra("url")
        webValuesX5.loadUrl(url!!)
    }
}